package com.jpl.seminar.ui.util;

import com.jpl.seminar.business.SeminarService;
import com.jpl.seminar.business.impl.SeminarServiceImpl;

public class ServiceLocator {

	private static ServiceLocator instance;

	private final SeminarService seminarService;

	private ServiceLocator() {
		this.seminarService = new SeminarServiceImpl();
	}

	public static ServiceLocator getInstance() {
		if (instance == null) {
			instance = new ServiceLocator();
		}
		return instance;
	}

	public SeminarService getSeminarService() {
		return this.seminarService;
	}

}
